/********************************************************************** 
 * FILE		: TabelModel.java					
 *			
 * AUTHOR   : kloyf	
 * 
 * DATE		: 2014-6-18
 * 									
 * REASON	: CREATE  
 *
 ***********************************************************************/
package com.common.util.sql.model;

import com.common.util.BaseUtil;

/**********************************************************************
 * @author kloyf
 * 
 * @version 1.0
 * 
 ***********************************************************************/
public class ColumnModel extends BaseUtil {
	// 列名
	private String columnName;
	// 列类型
	private String columnType;
	//
	private boolean primaryKey;
	// 是否自动增长
	private boolean autoIncrement;
	// 是否为空
	private boolean nullable;
	// 列宽度
	private int columnSize;


	public boolean isPrimaryKey() {
		return primaryKey;
	}

	public void setPrimaryKey(boolean primaryKey) {
		this.primaryKey = primaryKey;
	}

	public boolean isAutoIncrement() {
		return autoIncrement;
	}

	public void setAutoIncrement(boolean autoIncrement) {
		this.autoIncrement = autoIncrement;
	}

	public boolean isNullable() {
		return nullable;
	}

	public void setNullable(boolean nullable) {
		this.nullable = nullable;
	}

	public String getColumnName() {
		return columnName;
	}

	public void setColumnName(String columnName) {
		this.columnName = columnName;
	}

	public String getColumnType() {
		return columnType;
	}

	public void setColumnType(String columnType) {
		this.columnType = columnType;
	}

	public int getColumnSize() {
		return columnSize;
	}

	public void setColumnSize(int columnSize) {
		this.columnSize = columnSize;
	}
}
